import request from '@/utils/request'

// 获取全部角色列表
export const getRolesAPI = params =>
  request({
    url: '/sys/role',
    method: 'get',
    params
  })

// 获取id获取角色详情
export const getUserRolesAPI = id =>
  request({
    url: `/sys/role/${id}`
  })
